how to write pythonic code

visit shbcf.ru